<!DOCTYPE html>
<form name="card_form" class="form-inline" ng-submit="valid(card) && addCard(card)" novalidate>
    <div class="form-group">
        <label for="card_name">名称</label>
        <input id="card_name" type="text" ng-model="card.name"/>
    </div>
    <div class="form-group">
        <label for="card_cost">费用</label>
        <input id="card_cost" type="text" ng-model="card.cost"/>
    </div>
    <div class="form-group">
        <label for="card_attack">攻击力</label>
        <input id="card_attack" type="text" ng-model="card.attack"/>
    </div>
    <div class="form-group">
        <label for="card_life">生命值</label>
        <input id="card_life" type="text" ng-model="card.life"/>
    </div>
    <div class="form-group">
        <label for="card_description">描述</label>
        <input id="card_description" type="text" ng-model="card.description"/>
    </div>
    <div class="form-group">
        <input id="card_submit" type="submit" value="提交" class="btn btn-primary" />
    </div>
</form>